/**
 * 二级页
 */

// ***************	二级页面之 新闻中心 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zrzy.jl.gov.cn/xwzx/'){

	// 0. 幻灯片 轮播图  ------------ begin
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationZrzy1PreLabel = $(".bxm_lubt .news_center h2 a:first");

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationZrzy1Label1 = $("#D1pic1 .fcon:eq(0) span a:first");
	_EsdDynamicTransformationScript.esdRotationZrzy1Label2 = $("#D1pic1 .fcon:eq(1) span a:first");
	_EsdDynamicTransformationScript.esdRotationZrzy1Label3 = $("#D1pic1 .fcon:eq(2) span a:first");
	_EsdDynamicTransformationScript.esdRotationZrzy1Label4 = $("#D1pic1 .fcon:eq(3) span a:first");
	_EsdDynamicTransformationScript.esdRotationZrzy1Label5 = $("#D1pic1 .fcon:eq(4) span a:first");
	_EsdDynamicTransformationScript.esdRotationZrzy1Label6 = $("#D1pic1 .fcon:eq(5) span a:first");

	//原点
	_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint1 = $("#D1fBt a:eq(0) i");
	_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint2 = $("#D1fBt a:eq(1) i");
	_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint3 = $("#D1fBt a:eq(2) i");
	_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint4 = $("#D1fBt a:eq(3) i");
	_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint5 = $("#D1fBt a:eq(4) i");
	_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint6 = $("#D1fBt a:eq(5) i");
	
	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationZrzy1AfterLabel = $(".bxm_top_right .bxm_tzgg_top .bxm_list a:first");

	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationZrzy1PreLabel.focus(function (e) {
		$(this).bind("keydown.keydown_0_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				// _EsdDynamicTransformationScript.esdRotationZrzy1PreLabel.trigger("blur");
				$(this).unbind("keydown.keydown_0_0");
				return false;
			}else if (e.keyCode == 9) {
				// _EsdDynamicTransformationScript.esdRotationZrzy1PreLabel.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint1.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint1.mouseover();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label1.focus();
				$(this).unbind("keydown.keydown_0_0");
				return false;
			}
		});
	});

	// 轮播图 第1块
	_EsdDynamicTransformationScript.esdRotationZrzy1Label1.focus(function (e) {
		$(this).bind("keydown.keydown_0_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1Label1.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1PreLabel.focus();
				$(this).unbind("keydown.keydown_0_1");
				return fasle;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationZrzy1Label1.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint2.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint2.mouseover();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label2.focus();
				$(this).unbind("keydown.keydown_0_1");
				return false;
			}
		});

	});

	// 轮播图 第2块
	_EsdDynamicTransformationScript.esdRotationZrzy1Label2.focus(function (e) {
		$(this).bind("keydown.keydown_0_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1Label2.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint1.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label1.focus();
				$(this).unbind("keydown.keydown_0_2");
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationZrzy1Label2.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint3.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint3.mouseover();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label3.focus();
				$(this).unbind("keydown.keydown_0_2");
				return false;
			}
		});

	});

	// 轮播图 第3块
	_EsdDynamicTransformationScript.esdRotationZrzy1Label3.focus(function (e) {
		$(this).bind("keydown.keydown_0_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1Label3.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint2.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label2.focus();
				$(this).unbind("keydown.keydown_0_3");
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationZrzy1Label3.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint4.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint4.mouseover();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label4.focus();
				$(this).unbind("keydown.keydown_0_3");
				return false;
			}
		});

	});

	// 轮播图 第4块
	_EsdDynamicTransformationScript.esdRotationZrzy1Label4.focus(function (e) {
		$(this).bind("keydown.keydown_0_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1Label4.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint3.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label3.focus();
				$(this).unbind("keydown.keydown_0_4");
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationZrzy1Label4.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint5.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint5.mouseover();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label5.focus();
				$(this).unbind("keydown.keydown_0_4");
				return false;
			}
		});

	});

	// 轮播图 第5块
	_EsdDynamicTransformationScript.esdRotationZrzy1Label5.focus(function (e) {
		$(this).bind("keydown.keydown_0_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1Label5.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint4.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label4.focus();
				$(this).unbind("keydown.keydown_0_5");
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationZrzy1Label5.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint6.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint6.mouseover();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label6.focus();
				$(this).unbind("keydown.keydown_0_5");
				return false;
			}
		});

	});

	// 轮播图 第6块
	_EsdDynamicTransformationScript.esdRotationZrzy1Label6.focus(function (e) {
		$(this).bind("keydown.keydown_0_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1Label6.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint5.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label5.focus();
				$(this).unbind("keydown.keydown_0_6");
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationZrzy1Label6.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1AfterLabel.focus();
				$(this).unbind("keydown.keydown_0_6");
				return false;
			}
		});

	});
	
	//  轮播图 轮播后的焦点
	_EsdDynamicTransformationScript.esdRotationZrzy1AfterLabel.focus(function (e) {
		$(this).bind("keydown.keydown_0_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationZrzy1AfterLabel.trigger("blur");
				_EsdDynamicTransformationScript.esdRotationZrzy1CirclePoint6.click();
				_EsdDynamicTransformationScript.esdRotationZrzy1Label6.focus();
				$(this).unbind("keydown.keydown_0_6");
				return false;
			}else if (e.keyCode == 9) {
				$(this).unbind("keydown.keydown_0_6");
				return false;
			}
		});

	});

	// 0. 幻灯片 轮播图  ------------ end
}
// ***************	二级页面之 新闻中心 end	***************	//